package org.zebra.mybatis.plus.ext.datapermission.dept.annotation;

import java.lang.annotation.*;

/**
 * @author zhanghongbin
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface DeptDataPermissionField {

    String userIdFieldName() default "user_id";

    FieldType userIdFieldType() default FieldType.NUMBER;

    String deptIdFieldName() default "dept_id";

    FieldType deptIdFieldType() default FieldType.NUMBER;

    enum FieldType {
        NUMBER,
        STRING
    }
}
